//
//  BSLNavigator.h
//  Chamleon-template
//
//  Created by YLW on 15/10/23.
//
//

#import "CDVPlugin.h"


typedef enum {
    NavigatorCookieTypeGet = 0,
    NavigatorCookieTypeSet,
    NavigatorCookieTypeRemoveAll,
    NavigatorCookieTypeRemoveCookie,
    NavigatorCookieTypeRemoveSession,
}NavigatorCookieType;

@interface NavigatorInfo : NSObject

@property (nonatomic , assign)BOOL fullscreen;

@property (nonatomic , copy)NSString *rgb;

@property (nonatomic , copy)NSString *style;

@property (nonatomic , assign)BOOL isVersion7;

@property (nonatomic , copy)NSString *url;

@property (nonatomic , assign)NavigatorCookieType cookieType;

@end

@interface BSLNavigator : CDVPlugin

@property (nonatomic, strong) NSString *callbackID;

@property (nonatomic , strong)NavigatorInfo *navigatorInfo;


- (void)setFullscreen:(CDVInvokedUrlCommand *)command;

- (void)setStatusBarBackground:(CDVInvokedUrlCommand *)command;

- (void)setStatusBarStyle:(CDVInvokedUrlCommand *)command;

- (void)isFullscreen:(CDVInvokedUrlCommand *)command;

- (void)getStatusBarStyle:(CDVInvokedUrlCommand *)command;

- (void)getStatusBarBackground:(CDVInvokedUrlCommand *)command;

- (void)setCookie:(CDVInvokedUrlCommand *)command;

- (void)getCookie:(CDVInvokedUrlCommand *)command;

- (void)removeAllCookie:(CDVInvokedUrlCommand *)command;

- (void)removeSessionCookie:(CDVInvokedUrlCommand *)command;

@end
